projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0fd901
)
button: Claim the sequence on multipress::pressed
author
Carlos Garnacho
<carlosg@gnome.org>
Tue, 27 May 2014 15:35:36 +0000
(17:35 +0200)
committer
Carlos Garnacho
<carlosg@gnome.org>
Tue, 27 May 2014 15:47:12 +0000
(17:47 +0200)
In order to avoid the event from bubbling, as it used to (not) do.
gtk/gtkbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbutton.c
b/gtk/gtkbutton.c
index 17a1f9d9873934ba052fffaa9f5eecf997f21920..32483b4249aac55715394bf0b6e7de740300ae53 100644
(file)
--- a/
gtk/gtkbutton.c
+++ b/
gtk/gtkbutton.c
@@
-598,6
+598,7
@@
multipress_pressed_cb (GtkGestureMultiPress *gesture,
gtk_widget_grab_focus (widget);
g_signal_emit (button, button_signals[PRESSED], 0);
+ gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
}
static void